import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

class Test{
	
	public static void main(String[] args) throws SQLException, ClassNotFoundException {
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.129.132.252:1521:ORACLE", "iss0615", "0615");
		Statement st = conn.createStatement();
		st.execute("select loginname from sys_user where loginname='admin'");
		ResultSet rs = st.getResultSet();
		st.close();
		conn.close();
	}
}
